package ${packageName}.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.e3.core.base.SuperOCEntity;

@Entity
@Table(name="${TableMeta.tableName?upper_case}")
public class ${className}Entity extends SuperOCEntity{
	private static final long serialVersionUID = -3490577507462281438L;
	<#list TableMeta.colMetas as field>
	
	private ${TableMeta.getJavaTypeName(field)} ${TableMeta.getJavaFieldName(field)};
	</#list>
	<#list TableMeta.colMetas as field>
	
	@Column(name="${field.colName?upper_case}")
	public ${TableMeta.getJavaTypeName(field)} ${TableMeta.getGetterMethod(field)}(){
		return this.${TableMeta.getJavaFieldName(field)};
	}
	
	public void ${TableMeta.getSetterMethod(field)}(${TableMeta.getJavaTypeName(field)} ${TableMeta.getJavaFieldName(field)}){
		this.${TableMeta.getJavaFieldName(field)} = ${TableMeta.getJavaFieldName(field)};
	}
	</#list>
}
